.class public Lt4j/data/GeoInfor;
.super Ljava/lang/Object;
.source "GeoInfor.java"


# instance fields
.field private coordinates:[D

.field private type:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lt4j/org/json/JSONObject;)V
    .locals 5
    .parameter "json"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lt4j/TBlogException;
        }
    .end annotation

    .prologue
    .line 70
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 44
    const/4 v1, 0x2

    new-array v1, v1, [D

    iput-object v1, p0, Lt4j/data/GeoInfor;->coordinates:[D

    .line 73
    :try_start_0
    const-string v1, "type"

    invoke-virtual {p1, v1}, Lt4j/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lt4j/data/GeoInfor;->type:Ljava/lang/String;

    .line 74
    iget-object v1, p0, Lt4j/data/GeoInfor;->coordinates:[D

    const/4 v2, 0x0

    const-string v3, "coordinates"

    invoke-virtual {p1, v3}, Lt4j/org/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lt4j/org/json/JSONArray;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Lt4j/org/json/JSONArray;->getDouble(I)D

    move-result-wide v3

    aput-wide v3, v1, v2

    .line 75
    iget-object v1, p0, Lt4j/data/GeoInfor;->coordinates:[D

    const/4 v2, 0x1

    const-string v3, "coordinates"

    invoke-virtual {p1, v3}, Lt4j/org/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lt4j/org/json/JSONArray;

    move-result-object v3

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Lt4j/org/json/JSONArray;->getDouble(I)D

    move-result-wide v3

    aput-wide v3, v1, v2
    :try_end_0
    .catch Lt4j/org/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 79
    return-void

    .line 76
    :catch_0
    move-exception v0

    .line 77
    .local v0, e:Lt4j/org/json/JSONException;
    new-instance v1, Lt4j/TBlogException;

    invoke-direct {v1, v0}, Lt4j/TBlogException;-><init>(Ljava/lang/Exception;)V

    throw v1
.end method


# virtual methods
.method public getCoordinates()[D
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lt4j/data/GeoInfor;->coordinates:[D

    return-object v0
.end method

.method public getLatitude()D
    .locals 2

    .prologue
    .line 47
    iget-object v0, p0, Lt4j/data/GeoInfor;->coordinates:[D

    const/4 v1, 0x0

    aget-wide v0, v0, v1

    return-wide v0
.end method

.method public getLongitude()D
    .locals 2

    .prologue
    .line 51
    iget-object v0, p0, Lt4j/data/GeoInfor;->coordinates:[D

    const/4 v1, 0x1

    aget-wide v0, v0, v1

    return-wide v0
.end method

.method public getType()Ljava/lang/String;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lt4j/data/GeoInfor;->type:Ljava/lang/String;

    return-object v0
.end method

.method public setCoordinates([D)V
    .locals 0
    .parameter "coordinates"

    .prologue
    .line 67
    iput-object p1, p0, Lt4j/data/GeoInfor;->coordinates:[D

    .line 68
    return-void
.end method

.method public setType(Ljava/lang/String;)V
    .locals 0
    .parameter "type"

    .prologue
    .line 59
    iput-object p1, p0, Lt4j/data/GeoInfor;->type:Ljava/lang/String;

    .line 60
    return-void
.end method
